﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using SharpMUD.Framework.Services.Configuration;

namespace SharpMUD.Application.BootStrap
{
    [Serializable]
    [XmlRoot("MudServer")]
    public sealed partial class MudConfig
	{

        private List<ServiceConfigurationEntryBase> _ServiceConfigurations = new List<ServiceConfigurationEntryBase>();
        
        [XmlElement("add")]
        public ServiceConfigurationEntryBase[] Services
        {
            get
            {
                return _ServiceConfigurations.ToArray();
            }
            set
            {
                if (value == null)
                    throw new ArgumentNullException("value");
                _ServiceConfigurations.AddRange(value);
            }
        }

	}
}
